<?php
include("includes/myconnect.php");
function getRate($fromCurrency, $toRateCurrency){
	$sql = "SELECT exchangeRate as rate FROM tblCurrencyExchangerate where (currencyRootId like '" . $fromCurrency . "' and currencyReferId like '" . $toRateCurrency . "')";
	;
	if($res = mysql_fetch_array(mysql_query($sql)))
		return $res['rate'];
	return null;	
} 
echo getRate("ARS","LKR");
?>